import Layout from '@/views/layout/Layout'

const system_manage = {
  path: '/system_manage',
  component: Layout,
  redirect: '/system_manage/user',
  name: 'system_manage',
  meta: { title: '系统管理', roles: ['1'], icon: 'guanli',},
  children: [
    {
      path: 'user',
      component: () => import('@/views/system_manage/user/index'),
      name: 'system_manage.user.list',
      meta: { title: '用户', icon: 'subsystem', fullPath: '/system_manage/user' ,},
      children: [
        {
          path: '',
          name: 'system_manage.user.list',
          // hidden:true,
          component: () => import('@/views/components/list_card'),
          meta: { title: '用户', title1: '列表', icon: 'subsystem' }
        },
        {
          path: 'create',
          name: 'system_manage.user.create',
          hidden: true,
          component: () => import('@/views/system_manage/user/components/create_card'),
          meta: { title1: '创建', icon: 'subsystem' ,}
        },
        {
          path: 'edit',
          name: 'system_manage.user.edit',
          hidden: true,
          component: () => import('@/views/system_manage/user/components/edit_card'),
          meta: { title1: '编辑', icon: 'subsystem' }
        }
      ]
    },
    {
      path: 'role',
      name: 'system_manage.role.list',
      component: () => import('@/views/system_manage/role/index'),
      meta: { title: '角色', icon: 'subsystem', fullPath: '/system_manage/role'  },
      // redirect:'/system_manage/role/list',
      children: [
        {
          path: '',
          name: 'system_manage.role.list',
          hidden: true,
          component: () => import('@/views/components/list_card'),
          meta: { title1: '列表', icon: 'subsystem' }
        },
        {
          path: 'create',
          name: 'system_manage.role.create',
          hidden: true,
          component: () => import('@/views/system_manage/role/components/create_card'),
          meta: { title1: '创建', icon: 'subsystem' }
        },
        {
          path: 'edit',
          name: 'system_manage.role.edit',
          hidden: true,
          component: () => import('@/views/system_manage/role/components/edit_card'),
          meta: { title1: '编辑', icon: 'subsystem' }
        }
      ]
    },
    // {
    //   path: 'jurisdiction',
    //   component: () => import('@/views/system_manage/jurisdiction/index'),
    //   name: 'system_manage.jurisdiction.list',
    //   meta: { title: '权限', icon: 'subsystem', fullPath: '/system_manage/jurisdiction',  },
    //   // redirect:'/system_manage/jurisdiction/list',
    //   children: [
    //     {
    //       path: '',
    //       name: 'system_manage.jurisdiction.list',
    //       hidden: true,
    //       component: () => import('@/views/components/list_card'),
    //       meta: { title1: '列表', icon: 'tree',}
    //     },
    //     {
    //       path: 'create',
    //       name: 'system_manage.jurisdiction.create',
    //       hidden: true,
    //       component: () => import('@/views/system_manage/jurisdiction/components/create_card'),
    //       meta: { title1: '创建', icon: 'tree' }
    //     },
    //     {
    //       path: 'edit',
    //       name: 'system_manage.jurisdiction.edit',
    //       hidden: true,
    //       component: () => import('@/views/system_manage/jurisdiction/components/edit_card'),
    //       meta: { title1: '编辑', icon: 'tree' }
    //     }
    //   ]
    // }
  ]
}

export default system_manage
